package com.tbb.app.base.search;

import com.tbb.app.common.entity.PageBeanSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "笔记分页查询传参对象，主页使用")
public class NoteUserPageSearch extends PageBeanSearch {

    @ApiModelProperty(value = "类型，必填，0-用户发布，1-用户收藏")
    @NotNull(message = "类型必填")
    Integer type;

    @ApiModelProperty(value = "用户id，不填表示自己")
    String userId;
}
